import request from '../../utils/request'


// 获取未删除的医院导航数据
export function getHospitalNavList(){
    return request({
        url:'/hospitalNav',
        params:{
            isdelete:0
        }
    })
}

// 删除医院导航数据
export function delHospitalNav(id){
    return request({
        url:`/hospitalNav/${id}`,
        method:'patch',
        data:{
            isdelete:1
        }
    })
}

// 修改医院导航信息
export function updataHospitalNav(id,obj){
    return request({
        url:`/hospitalNav/${id}`,
        method:'patch',
        data:obj
    })
}

// 添加医院导航信息
export function addHospitalNav(obj){
    return request({
        url:'/hospitalNav',
        method:'post',
        data:obj
    })
}

